﻿using System.Diagnostics.Contracts;

namespace O1.Kernel.IO.Storage
{
    [ContractVerification(true)]
    internal class DataTask<T> : StorageTask
    {
        public readonly T Item;

        public DataTask(TransactionToken token, T item, DmlOperation operation)
            : base(token, operation)
        {
            Contract.Requires(token != null);

            this.Item = item;
        }
    }
}
